<?php
mysql_connect('localhost','root','admin888');
mysql_select_db('c50');
mysql_query('set names utf8');


function query($sql)
{
	$result = mysql_query($sql);
	while($row = mysql_fetch_assoc($result))
	{
		$rows[]=$row;
	}
	return $rows;
}